import { fetchFlowDetail } from '@/fetch/api'
import ApproveFlowPath from '@/components/ApproveFlowPath';
export default {
  data() {
    return {
      approveFlowDialog: false,
      approveFlowDate: []
    }
  },
  components: {
    ApproveFlowPath
  },
  methods: {
    onApproveDetail(row) {
      // return
      const { orderId } = row
      if(!orderId) return
      fetchFlowDetail({ orderId }).then(res => {
        const { data } = res.data
        this.approveFlowDate = data
        this.approveFlowDialog = true
        console.log(res)
      })
    },
    onCloseApproveFlow() {
      this.approveFlowDialog = false
    }
  }
}
